<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>PushState</title>
    <meta http-equiv="X-UA-Compatible" content="chrome=1">
    <meta name="viewport" content="width=device-width">
    <link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- --------------------------------------
    history.pushState() 方法来修改referrer
    history.replaceState() 用于向 history 添加当前页面的记录
    window.onpopstate 会在点击浏览器后退或者前进按钮时发生
---------------------------------------- -->
<div class="wrapper">
    <h2>来自世界的首页</h2>
    <a href="xx?link=one" class="link" data-link="one">来自------说的</a>
    <a href="xx?link=two" class="link" data-link="two">来自------跑的</a>
    <div class="J_box">
        ----
    </div>
</div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>